package homework_03;

import java.util.Scanner;

public class Work17 {
    public static void main(String[] args) {
        //由命令行输入一个4位整数，求将该数反转以后的数，如原数为1234，反转后的数位4321。
        Scanner sc = new Scanner(System.in);
        int sr = sc.nextInt();
        int q = sr/1000;
        int b = sr/100%10;
        int s = sr/10%10;
        int g = sr%10;
        System.out.println(g+":"+s+":"+b+":"+q);
    }
}
